#include <cctype>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include<iostream>
using namespace std;

int main()
{
    string question;
    string tmp;
    vector<string> qt;
    getline(cin, question);
    for (int i = 0;i < question.size();i++)
    {
        if (question[i] != ' ' && question[i] != '.')
        {
            tmp += tolower(question[i]);
        }
        else
        {
            qt.push_back(tmp);
            tmp.clear();
        }
    }
    map<string, int> Countmap;
    for (auto& e : qt)
    {
        Countmap[e]++;
    }
    for (auto& kv : Countmap)
    {
        cout << kv.first << ":" << kv.second << endl;
    }
}
